package edu.kjxy.worker0312;

import java.util.Scanner;

public class worker06 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int sum = 0, i = 1;
		while(true) {
			sum += i;
			System.out.print(i++ + " ");
			if(sum >= n) break;
		}
		in.close();
	}

}
